#ifndef GMAIN_H
#define GMAIN_H
#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <iostream>
#include <QtCore>
#include <QDebug>
#include <QCoreApplication>
#include <QObject>
#include "qtedit.h"
 #include <QScrollBar>
#include "ui_gmain.h"
#include "main.h"

#include <QApplication>
#include <QtGui>


#if defined(Q_WS_MAC) 
 		/* Exported by Qt, but not declared in the header files.  
 		 * See http://doc.trolltech.com/exportedfunctions.html  */ 
void qt_mac_set_dock_menu(QMenu *menu); 
#endif




//
#include "mesearchdlg.h"
#include "qtedit.h"
/*  Save file as gmain.h  */
/*  incomming class name Gmain */
//   public QObject | public QHttp | public QThread     // 
#include <QPointer>

class DBword;
    
//
class Gmain : public QMainWindow, public Ui::Gmain
{
     Q_OBJECT
//
public:
/* Gmain( QWidget* = 0 );*/
 static Gmain* self( QWidget* = 0 );
 void cleanall();
 
//
protected:
    void dragEnterEvent(QDragEnterEvent *e);
     void dropEvent(QDropEvent *e);

QString one;
DBword *dbwwwww0;
MeSearchDlg *searchdlg;
QString keyos;
int nummer;
int taindex;
QStringList list;
QUrl url;
QByteArray byteArray;
bool having;
QSettings setter;
QDomDocument doc;
QDomElement root;
void closeEvent( QCloseEvent* );
QList<TextEdit *> filer;
QPalette Palettetexter();
private:
 Gmain( QWidget* = 0 );
 static QPointer<Gmain> _self;
 void Load_Connector();
signals:

public slots:
  void AddTabFile( const QString onefile , OPENMODUS modus  );
  void OpenFile( const QString onefile );
  void RemovePanelAt( int index );
  void RemoveNullFile();
  void ModiLabe(const QString file );
  void NewFile();
  void OpenFile( QUrl onefile );
  void SaveCurrentFile();
  void SavecopyFile();
  void ClosecurrentTabi();
  void TabMenu();
  void SearchDlg();
  void FinderIn();
  void KeyWords();
  void KeyWordsExport();
  void KeyWordsExportSQL();
  void OpenFileLocal();
  void MulitpleOpenFiles( QStringList files );
  void ModStyle();
};
//
#endif // GMAIN_H

